from flask import Flask, Blueprint, render_template, send_from_directory
from apps.common.utils import get_active_theme_name
# 创建main
article_bp = Blueprint('article',
                    __name__,
                    url_prefix='/article')
@article_bp.route('/<string:slug>')
def article_detail(slug):
    print(slug)
    return render_template(get_active_theme_name() + '/article.html')